<?PHP
# $_SESSION["passo"] = array(1=>"sim",2=>"ok",3=>"ok",4=>"sim"); 
@session_start();
switch($_REQUEST["passo"]){
	
	case "1":
	unset($_SESSION["passo"]);
	$_SESSION["passo"] = array(1=>"sim",2=>"sim",3=>"nao",4=>"nao",5=>"nao"); 
	header("Location: /comprar.php?id=".$_REQUEST["id"]."&passo=2");
	break;
	
	
	case "2":
	unset($_SESSION["passo"]);
	$_SESSION["passo"] = array(1=>"sim",2=>"ok",3=>"sim",4=>"nao",5=>"nao"); 
	header("Location: /comprar.php?id=".$_REQUEST["id"]."&passo=3");
	$_SESSION["check_pag"] = $_POST["pagamento"];
	break;
	
	
	case "3":
	unset($_SESSION["passo"]);
	//INPUTS - quantidadeItem | freteValor
	$_SESSION["check_qdt"] 	= $_POST["quantidadeItem"];
	$_SESSION["check_fre"] 	= $_POST["freteValor"];
	$_SESSION["check_tot"] 	= $_POST["valortotalp"];
	$_SESSION["check_imp"] 	= $_POST["imposto"];
	$_SESSION["check_impn"] = $_POST["imposto_t"];
	$_SESSION["check_mul"] 	= $_POST["multa"];
	$_SESSION["passo"] 		= array(1=>"sim",2=>"ok",3=>"ok",4=>"sim",5=>"nao"); 
	header("Location: /comprar.php?id=".$_REQUEST["id"]."&passo=4");
	break;
	
	
	
	}


?>